From: Wei Liu Date: Thu, 23 Jul 2015 07:59:12 +0000 (+0100) Subject: xl: free event struct after use in main_shutdown_or_reboot X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2689 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=3fd3edf3c1c243a831385ae7b8e1ed68bd967461;p=xen.git xl: free event struct after use in main_shutdown_or_reboot Signed-off-by: Wei Liu Acked-by: Ian Campbell --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index e90521aa5c..de1c9c029d 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4781,8 +4781,10 @@ static int main_shutdown_or_reboot(int do_reboot, int argc, char **argv) fallback_trigger); } - if (wait_for_it) + if (wait_for_it) { wait_for_domain_deaths(deathws, nb_domain - 1 /* not dom 0 */); + free(deathws); + } libxl_dominfo_list_free(dominfo, nb_domain); } else {